package com.itheima.mp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

public interface IUserService extends IService<User> {
    void deductBalance(Long id, Integer money);

    List<User> queryUsers(String name, Integer status, Integer maxBalance, Integer minBalance);

    void addBatchUser();

    UserVO getAddressById(Long id);

    List<UserVO> addressAndUserslistByIds(List<Long> ids);

    IPage<UserVO> addressAndUsersPage(Page<UserVO> page, List<Long> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery userQuery);
}
